package com.dyp.filterinterceptorlistener.web.listener;

import org.springframework.stereotype.Component;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;


@Component
public class MyRequestListener implements ServletRequestListener {
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("MyRequestListener @WebListener request 销毁");
    }

    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("MyRequestListener @WebListener request 初始化");
    }
}
